home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / modprolg / mod-prol.lha / Prolog / modlib / src / $currsym.P < prev    next >
Encoding:
Text File  |  1992-06-04  |  16.9 KB  |  640 lines

  1. /************************************************************************
  2. *                                    *
  3. * The SB-Prolog System                            *
  4. * Copyright SUNY at Stony Brook, 1986; University of Arizona,1987    *
  5. *                                    *
  6. ************************************************************************/
  7.  
  8. /*-----------------------------------------------------------------
  9. SB-Prolog is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY.  No author or distributor
  11. accepts responsibility to anyone for the consequences of using it
  12. or for whether it serves any particular purpose or works at all,
  13. unless he says so in writing.  Refer to the SB-Prolog General Public
  14. License for full details.
  15.  
  16. Everyone is granted permission to copy, modify and redistribute
  17. SB-Prolog, but only under the conditions described in the
  18. SB-Prolog General Public License.   A copy of this license is
  19. supposed to have been given to you along with SB-Prolog so you
  20. can know your rights and responsibilities.  It should be in a
  21. file named COPYING.  Among other things, the copyright notice
  22. and this notice must be preserved on all copies. 
  23. ------------------------------------------------------------------ */
  24.  
  25. /****************************************************************************
  26.  *                                                                          *
  27.  * This file has been changed by to include Modules Extensions              *
  28.  * Changes by : Brian Paxton 1991/92                                        *
  29.  * Last update : June 1992                                                  *
  30.  *                                                                          *
  31.  * Organisation : University of Edinburgh.                                  *
  32.  * For : Departments of Computer Science and Artificial Intelligence        * 
  33.  *       Fourth Year Project.                                               *
  34.  *                                                                          *
  35.  ****************************************************************************/
  36.  
  37. $currsym_export([$current_predicate/2,$current_predicate/3,
  38.              $predicate_property/2,
  39.          $predicate_property/3, $current_functor/2,
  40.          $current_functor/3,$current_atom/1,$current_atom/2,
  41.                  $pervasive/1, $pervasive0/1,
  42.                  $pervasive_function/1, $pervasive_function0/1,
  43.                  $pervasive_predicate/1, $pervasive_predicate0/1,
  44.          $functor_name/1,$structure_name/1,
  45.          $signature_name/1,$current_function/2,$current_function/3]).
  46.  
  47. % $currsym_use : $buff $bmeta
  48.  
  49. % The following batch of predicate all return the contents of the database
  50. % on backtracking. Only those listed with user level equivalents are
  51. % available to the user.
  52.  
  53. % On backtracking gives all predicates in database (not system ones).
  54. % Only current_predicate/2 available at user level.
  55.  
  56. $current_predicate(X,Y) :- $current_predicate(X,Y,_,0).
  57. $current_predicate(X,Y,ShowAll) :- $current_predicate(X,Y,_,ShowAll).
  58.  
  59. % Returns the type of the predicate (interpreted/compiled).
  60. % predicate_property/2 at user level.
  61.  
  62. $predicate_property(Pred,Prop) :- $predicate_property(Pred,Prop,0).
  63.  
  64. $predicate_property(Pred,interpreted,ShowAll) :-
  65.      $current_predicate(_,Pred,1,ShowAll).
  66. $predicate_property(Pred,compiled,ShowAll) :- 
  67.      $current_predicate(_,Pred,2,ShowAll).
  68.  
  69. $current_predicate(X,Y,Type,ShowAll) :-
  70.      (Type = 1 /* asserted */ ; Type = 2 /* compiled */ ),
  71.      (var(Y) ->
  72.           ($current_symbol(0,0,Type,0,X0,Y),
  73.        ((nonvar(X) ; ShowAll > 0) ->
  74.             true ;
  75.         ($external_symbol(X0), not($internal_pred(Y)))
  76.        ),
  77.        X0 = X
  78.           ) ;
  79.       ($symtype(Y, Type),
  80.        $functor0(Y,X)
  81.       )
  82.      ).
  83.  
  84. % Returns all functions (including atoms) on backtracking.
  85. % Only current_function/2 available at user level.
  86.  
  87. $current_function(X,Y) :-
  88.     $current_function(X,Y,0).
  89.  
  90. $current_function(X,X,Z) :-
  91.     $current_atom(X,Z).
  92.  
  93. $current_function(X,Y,ShowAll) :-
  94.      (var(Y) ->
  95.           ($current_symbol(0,0,0,0,X0,Y),
  96.        ((nonvar(X) ; ShowAll > 0) ->
  97.             true ;
  98.         ($external_symbol(X0), not($internal_func(Y)))
  99.        ),
  100.        X0 = X
  101.           ) ;
  102.       ($symtype(Y, Type),
  103.        $functor0(Y,X)
  104.       )
  105.      ).
  106.  
  107. $current_functor(X,Y) :- $current_functor(X,Y,0).
  108.  
  109. $current_functor(X,Y,ShowAll) :-
  110.      $current_symbol(0,0,0,0,X0,Y0),
  111.      (ShowAll > 0 ->
  112.          true ;
  113.      $external_symbol(X0)
  114.      ),
  115.      X0 = X,
  116.      Y0 = Y.
  117. $current_functor(X,Y,ShowAll) :- $current_predicate(X,Y,ShowAll).
  118.  
  119. % Returns all atoms on backtracking.
  120. % current_atom/1 at user level.
  121.  
  122. $current_atom(X) :- $current_atom(X,0).
  123.  
  124. $current_atom(X,ShowAll) :-
  125.      $current_symbol(0,0,0,0,X0,_),
  126.      (ShowAll > 0 ->
  127.          true ;
  128.      ( $external_symbol(X0), not($internal_func(X0)) )
  129.      ),
  130.      $atom(X0),
  131.      X = X0.
  132.  
  133. $current_symbol(CurrBucket,CurrElt,Type,OldP,X,Y) :-
  134.      $stlookup(CurrBucket,CurrElt,Type,OldP,NewBucket,NewElt,Psc),
  135.      (($mkstr(Psc,Y,_),
  136.        $functor0(Y,X)
  137.       ) ;
  138.       $current_symbol(NewBucket,NewElt,Type,1,X,Y)
  139.      ).
  140.  
  141. $stlookup(A,B,C,D,E,F,G) :- '_$builtin'(14).
  142.  
  143. /* a symbol is considered an external symbol if its name does not begin
  144.    with $ or _$.
  145. */
  146.  
  147. $external_symbol(X) :-
  148.      $name(X,Xname),
  149.      not( (Xname = [0'$ | _] ;
  150.            Xname = [0'_, 0'$|_]
  151.       )
  152.     ).
  153.  
  154. /* The following define the contents of the pervasives signature. */
  155. /* All available at user level */
  156.  
  157. $pervasive_function(Name/Arity) :-
  158.     $atom(Name), $integer(Arity),
  159.     $bldstr(Name,Arity,Term),
  160.     $pervasive_function0(Term).
  161.  
  162. $pervasive_function0(Term) :-
  163.     ( $atom(Term) -> true ; $structure(Term) ),
  164.     $functor0(Term,Name),
  165.     ( not($external_symbol(Name)) ;
  166.       $internal_func(Term) ),!.
  167.  
  168. $pervasive_predicate(Name/Arity) :-
  169.     $atom(Name), $integer(Arity),
  170.     $bldstr(Name,Arity,Term),
  171.     $pervasive_predicate0(Term).
  172.  
  173. $pervasive_predicate0(Term) :-
  174.     ( $atom(Term) -> true ; $structure(Term) ),
  175.     $functor0(Term,Name),
  176.     ( not($external_symbol(Name)) ;
  177.       $internal_pred(Term) ),!.
  178.  
  179. $pervasive(Name/Arity) :-
  180.     $atom(Name), $integer(Arity),
  181.     $bldstr(Name,Arity,Term),
  182.     $pervasive0(Term).
  183.  
  184. $pervasive0(Term) :-
  185.     ( $atom(Term) -> true ; $structure(Term) ),
  186.     $functor0(Term,Name),
  187.     ( not($external_symbol(Name)) ;
  188.       $internal_pred(Term) ;
  189.       $internal_func(Term) ),!.
  190.  
  191. /* Find names of module constructs. */
  192. /* All available at user level */
  193.  
  194. $functor_name(X) :-
  195.     $symtype($module_functor(_,_,_,_,_,_,_,_,_,_),Type),
  196.     Type > 0,
  197.     $setof(Name, Name^D1^D2^D3^D4^D5^D6^D7^D8^D9^
  198.                      $module_functor(Name,D1,D2,D3,D4,D5,D6,D7,D8,D9), List),
  199.     $member(X, List).
  200.  
  201. $structure_name(X) :-
  202.     $symtype($module_structure(_,_,_,_,_),Type),
  203.     Type > 0,
  204.     $setof(Name, Name^D1^D2^D3^D4^
  205.                      $module_structure(Name,D1,D2,D3,D4), List),
  206.     $member(X, List).
  207.  
  208. $signature_name(X) :-
  209.     $symtype($module_signature(_,_,_,_,_),Type),
  210.     Type > 0,
  211.     $setof(Name, Name^D1^D2^D3^D4^
  212.                      $module_signature(Name,D1,D2,D3,D4), List),
  213.     $member(X, List).
  214.  
  215.  
  216. % THE PREDICATES
  217.  
  218. % File : $bio.P
  219. $internal_pred(writename(_)).
  220. $internal_pred(writeqname(_)).
  221. $internal_pred(put(_)).
  222. $internal_pred(nl).
  223. $internal_pred(tab(_)).
  224. $internal_pred(tell(_)).
  225. $internal_pred(tell(_,_)).
  226. $internal_pred(telling(_)).
  227. $internal_pred(told).
  228. $internal_pred(get(_)).
  229. $internal_pred(get0(_)).
  230. $internal_pred(see(_)).
  231. $internal_pred(seeing(_)).
  232. $internal_pred(seen).
  233.  
  234. % File : $io.P
  235. $internal_pred(write(_)).
  236. $internal_pred(writeq(_)).
  237. $internal_pred(display(_)).
  238. $internal_pred(print(_)).
  239. $internal_pred(print_al(_,_)).
  240. $internal_pred(print_ar(_,_)).
  241. $internal_pred(errmsg(_)).
  242.  
  243. % File : $assert.P
  244. $internal_pred(assert(_)).
  245. $internal_pred(asserta(_)).
  246. $internal_pred(asserta(_,_)).
  247. $internal_pred(assertz(_)).
  248. $internal_pred(assertz(_,_)).
  249. $internal_pred(assert(_,_)).
  250. $internal_pred(asserti(_,_)).
  251. $internal_pred(assert(_,_,_,_)).
  252. $internal_pred(assert_union(_,_)).
  253. $internal_pred(assert(_,_,_)).
  254. $internal_pred(asserta(_,_,_)).
  255. $internal_pred(assertz(_,_,_)).
  256. $internal_pred(asserti(_,_,_)).
  257.  
  258. % File : $bmeta.P
  259. $internal_pred(atom(_)).
  260. $internal_pred(atomic(_)).
  261. $internal_pred(integer(_)).
  262. $internal_pred(number(_)).
  263. $internal_pred(arg(_,_,_)).
  264. $internal_pred(compound_term(_)).
  265. $internal_pred(arity(_,_)).
  266. $internal_pred(real(_)).
  267. $internal_pred(float(_)).
  268. $internal_pred(is_buffer(_)).
  269. $internal_pred(bldstr(_,_,_,_)).    % Processed by $funrel.P for extra arg
  270. $internal_pred(function(_)).
  271. $internal_pred(predicate(_)).
  272.  
  273. % File : $meta.P
  274. $internal_pred(length(_,_)).
  275. $internal_pred('=..'(_,_,_)).       % Processed by $funrel.P for extra arg
  276. $internal_pred(compound(_,_,_,_)).  % Processed by $funrel.P for extra arg
  277.  
  278. % File : $name.P
  279. $internal_pred(name(_,_,_)).        % Processed by $funrel.P for extra arg
  280.  
  281. % File : $read.P
  282. $internal_pred(read(_,_)).          % Processed by $funrel.P for extra arg
  283. $internal_pred(read(_,_,_)).        % Processed by $funrel.P for extra arg
  284.  
  285. % File : $inlines.P
  286. $internal_pred('='(_,_)).
  287. $internal_pred('<'(_,_)).
  288. $internal_pred('=<'(_,_)).
  289. $internal_pred('>='(_,_)).
  290. $internal_pred('>'(_,_)).
  291. $internal_pred('=:='(_,_)).
  292. $internal_pred('=\='(_,_)).
  293. $internal_pred(is(_,_)).
  294. $internal_pred(eval(_,_)).
  295. $internal_pred(var(_)).
  296. $internal_pred(nonvar(_)).
  297. $internal_pred(fail).
  298. $internal_pred(true).
  299. $internal_pred(halt).
  300. $internal_pred('?='(_,_)).
  301. $internal_pred('\='(_,_)).
  302.  
  303. % File : $osys.P
  304. $internal_pred(cputime(_)).
  305. $internal_pred(syscall(_,_,_)).
  306. $internal_pred(system(_)).
  307.  
  308. % File : $glob.P
  309. $internal_pred(globalset(_)).
  310. $internal_pred(gennum(_)).
  311. $internal_pred(gensym(_,_)).
  312.  
  313. % File : $compare.P
  314. $internal_pred('=='(_,_)).
  315. $internal_pred('\=='(_,_)).
  316. $internal_pred('@=<'(_,_)).
  317. $internal_pred('@<'(_,_)).
  318. $internal_pred('@>'(_,_)).
  319. $internal_pred('@>='(_,_)).
  320. $internal_pred(compare(_,_,_)).
  321.  
  322. % File : $deb.P
  323. $internal_pred(debug).
  324. $internal_pred(nodebug).
  325. $internal_pred(trace(_)).
  326. $internal_pred(untrace(_)).
  327. $internal_pred(spy(_)).
  328. $internal_pred(nospy(_)).
  329. $internal_pred(trace).
  330. $internal_pred(untrace).
  331. $internal_pred(debugging).
  332. $internal_pred(tracepreds(_)).
  333. $internal_pred(spypreds(_)).
  334.  
  335. % File : $retr.P
  336. $internal_pred(retract(_)).
  337. $internal_pred(abolish(_)).
  338. $internal_pred(abolish(_,_)).
  339. $internal_pred(retractall(_)).
  340. $internal_pred(retract(_,_)).
  341. $internal_pred(retractall(_,_)).
  342.  
  343. % File : $consult.P
  344. $internal_pred(consult(_)).
  345. $internal_pred(consult(_,_)).
  346. $internal_pred(consult(_,_,_)).
  347.  
  348. % File : $buff.P (found in $readloop.P)
  349. $internal_pred(alloc_perm(_,_)).
  350. $internal_pred(alloc_heap(_,_)).
  351. $internal_pred(trimbuff(_,_,_)).
  352. $internal_pred(symtype(_,_)).
  353. $internal_pred(substring(_,_,_,_,_,_)).
  354. $internal_pred(subnumber(_,_,_,_,_,_)).
  355. $internal_pred(subdelim(_,_,_,_,_,_)).
  356. $internal_pred(conlength(_,_)).
  357. $internal_pred(pred_undefined(_)).
  358. $internal_pred(hashval(_,_,_)).
  359.  
  360. % File : $defint.P
  361. $internal_pred(defint_call(_,_,_,_)).
  362.  
  363. % File : $setof.P
  364. $internal_pred(setof(_,_,_)).
  365. $internal_pred(bagof(_,_,_)).
  366. $internal_pred(findall(_,_,_)).
  367. $internal_pred(sort(_,_)).
  368. $internal_pred(keysort(_,_)).
  369. $internal_pred('^'(_,_)).
  370.  
  371. % File : $compile.P
  372. $internal_pred(compile).
  373. $internal_pred(compile(_)).
  374. $internal_pred(compile(_,_)).
  375. $internal_pred(compile(_,_,_)).
  376. $internal_pred(compile(_,_,_,_)).
  377.  
  378. % File : $getclauses.P
  379. $internal_pred(getclauses(_,_)).
  380. $internal_pred(getclauses(_,_,_)).
  381. $internal_pred(attach(_,_)).
  382. $internal_pred(expand_term(_,_)).
  383.  
  384. % File : $prag.P
  385. $internal_pred(get_prag(_,_)).
  386.  
  387. % File : $blist.P
  388. $internal_pred(append(_,_,_)).
  389. $internal_pred(member(_,_)).
  390.  
  391. % File : $listutil1.P
  392. $internal_pred(reverse(_,_)).
  393. $internal_pred(merge(_,_,_)).
  394. $internal_pred(absmember(_,_)).
  395. $internal_pred(absmerge(_,_,_)).
  396. $internal_pred(closetail(_)).
  397. $internal_pred(nthmember(_,_,_)).
  398.  
  399. % File : $arith.P
  400. $internal_pred(floatc(_,_,_)).
  401. $internal_pred(exp(_,_)).
  402. $internal_pred(square(_,_)).
  403. $internal_pred(sin(_,_)).
  404. $internal_pred(floor(_,_)).
  405.  
  406. % File : $prof.P
  407. $internal_pred(count(_)).
  408. $internal_pred(time(_)).
  409. $internal_pred(nocount(_)).
  410. $internal_pred(notime(_)).
  411. $internal_pred(profiling).
  412. $internal_pred(prof_reset(_)).
  413. $internal_pred(resetcount(_)).
  414. $internal_pred(resettime(_)).
  415. $internal_pred(profile).
  416. $internal_pred(noprofile).
  417. $internal_pred(timepreds(_)).
  418. $internal_pred(countpreds(_)).
  419. $internal_pred(prof_stats(_)).
  420. $internal_pred(prof_stats).
  421.  
  422. % File : $stat.P
  423. $internal_pred(statistics).
  424. $internal_pred(statistics(_,_)).
  425.  
  426. % File : $dcg.P
  427. $internal_pred(dcg(_,_)).
  428. $internal_pred(phrase(_,_)).
  429. $internal_pred(phrase(_,_,_)).
  430. $internal_pred('C'(_,_,_)).
  431.  
  432. % File : $portray.P
  433. $internal_pred(portray_term(_)).
  434. $internal_pred(portray_clause(_)).
  435.  
  436. % File : $decompile.P
  437. $internal_pred(clause(_,_)).
  438. $internal_pred(clause(_,_,_)).
  439. $internal_pred(listing(_)).
  440. $internal_pred(instance(_,_)).
  441. $internal_pred(listing).
  442. $internal_pred(list_module(_)).
  443.  
  444. % File : $record.P
  445. $internal_pred(erase(_)).
  446. $internal_pred(recorda(_,_,_)).
  447. $internal_pred(recordz(_,_,_)).
  448. $internal_pred(recorded(_,_,_)).
  449.  
  450. % File : $currsym.P
  451. $internal_pred(current_predicate(_,_)).
  452. $internal_pred(predicate_property(_,_)).
  453. $internal_pred(current_atom(_)).
  454. $internal_pred(pervasive(_)).
  455. $internal_pred(pervasive0(_)).
  456. $internal_pred(pervasive_function(_)).
  457. $internal_pred(pervasive_function0(_)).
  458. $internal_pred(pervasive_predicate(_)).
  459. $internal_pred(pervasive_predicate0(_)).
  460. $internal_pred(functor_name(_)).
  461. $internal_pred(structure_name(_)).
  462. $internal_pred(signature_name(_)).
  463. $internal_pred(current_function(_,_)).
  464.  
  465. % File : $modules.P
  466. $internal_pred(dismantle_name(_,_,_)).
  467. $internal_pred(current_structure(_,_)). % Processed by $funrel.P for extra arg
  468. $internal_pred(structure(_,_,_)).       % Processed by $funrel.P for extra arg
  469. $internal_pred(structure(_,_,_,_)).     % Processed by $funrel.P for extra arg
  470.  
  471. % File : $call.P
  472. $internal_pred(','(_,_)).
  473. $internal_pred(','(_,_,_,_)).
  474. $internal_pred(';'(_,_)).
  475. $internal_pred('->'(_,_)).
  476. $internal_pred(not(_)).
  477. $internal_pred('\+'(_)).
  478. $internal_pred(call(_)).
  479. $internal_pred(call(_,_)).
  480.  
  481. % File : $readloop.P
  482. $internal_pred(break).
  483. $internal_pred(abort).
  484. $internal_pred(repeat).
  485. $internal_pred(loaded_mods(_)).
  486. $internal_pred(defined_mods(_,_)).
  487. $internal_pred(load(_)).
  488.  
  489. % Other bits
  490.  
  491. $internal_pred('!').
  492.  
  493. % The following predicates are defined in the /lib directory
  494.  
  495. $internal_pred(access(_,_)).
  496. $internal_pred(access(_,_,_)).
  497. $internal_pred(call_ref(_,_)).
  498. $internal_pred(call_ref(_,_,_)).
  499. $internal_pred(emode(_,_,_)).
  500. $internal_pred(errno(_)).
  501. $internal_pred(flags(_,_)).
  502. $internal_pred(index(_,_,_)).
  503. $internal_pred(mode(_)).
  504. $internal_pred(mode(_,_,_)).
  505. $internal_pred(nodynload(_,_)).
  506. $internal_pred(op(_,_,_)).
  507. $internal_pred(restore(_)).
  508. $internal_pred(save(_)).
  509. $internal_pred(exists(_)).
  510. $internal_pred(subsumes(_,_)).
  511.  
  512. % The following are pervasive predicates, but do not have a Prolog definition!
  513. % ie. those that require the extra current structure tag argument which is
  514. %     added in by $funrel.P
  515.  
  516. $internal_pred(current_structure(_)).
  517. $internal_pred(name(_,_)).
  518. $internal_pred(read(_)).
  519. $internal_pred(compound(_,_,_)).
  520. $internal_pred(bldstr(_,_,_)).
  521. $internal_pred('=..'(_,_)).
  522. $internal_pred(structure(_,_)).
  523.  
  524. % THE FUNCTIONS
  525.  
  526. % Clause forms/etc.
  527. % Note: Stuff like ; , -> are defined as predicates!
  528. % This list is not exhaustive - cannot possibly show all error messages, etc.
  529.  
  530. $internal_func('[]').
  531. $internal_func('.'(_,_)).
  532. $internal_func('::-'(_,_)).
  533. $internal_func(':-'(_)).
  534. $internal_func(':-'(_,_)).
  535.  
  536. % Dcg :
  537.  
  538. $internal_func('-->'(_,_)).
  539. $internal_func('{}').
  540. $internal_func('{}'(_)).
  541.  
  542. % Operators :
  543.  
  544. $internal_func(fx).
  545. $internal_func(xfx).
  546. $internal_func(fy).
  547. $internal_func(xfy).
  548. $internal_func(yfx).
  549. $internal_func(xf).
  550. $internal_func(yf).
  551.  
  552. % Files :
  553.  
  554. $internal_func(stderr).
  555. $internal_func(end_of_file).
  556. $internal_func(user).
  557.  
  558. % Statistics :
  559.  
  560. $internal_func(runtime).
  561. $internal_func(core).
  562. $internal_func(memory).
  563. $internal_func(stack_shifts).
  564. $internal_func(heap).
  565. $internal_func(program).
  566. $internal_func(global_stack).
  567. $internal_func(local_stack).
  568. $internal_func(trail).
  569. $internal_func(garbage_collection).
  570.  
  571. % Predicate types :
  572.  
  573. $internal_func(interpreted).
  574. $internal_func(compiled).
  575.  
  576. % Compare :
  577.  
  578. $internal_func('<').
  579. $internal_func('>').
  580. $internal_func('=').
  581.  
  582.  
  583. % Mathematical :
  584.  
  585. $internal_func('/'(_,_)).
  586. $internal_func('-'(_,_)).
  587. $internal_func('<<'(_,_)).
  588. $internal_func('+'(_,_)).
  589. $internal_func('-'(_)).
  590. $internal_func('+'(_)).
  591. $internal_func('//'(_,_)).
  592. $internal_func('\/'(_,_)).
  593. $internal_func('>>'(_,_)).
  594. $internal_func('/\'(_,_)).
  595. $internal_func('*'(_,_)).
  596. $internal_func('\'(_)).
  597. $internal_func(mod(_,_)).
  598. $internal_func(sqrt(_)).
  599. $internal_func(square(_)).
  600. $internal_func(arcsin(_)).
  601. $internal_func(integer(_)).
  602. $internal_func(float(_)).
  603. $internal_func(exp(_)).
  604. $internal_func(ln(_)).
  605. $internal_func(sin(_)).
  606.  
  607. % Compile/consult/etc arguments :
  608.  
  609. $internal_func('++').
  610. $internal_func(t).
  611. $internal_func('?').
  612. $internal_func(v).
  613. $internal_func(nv).
  614. $internal_func(a).
  615. $internal_func(c).
  616. $internal_func(d).
  617. $internal_func(e).
  618. $internal_func(s).
  619. $internal_func('+').
  620. $internal_func('-').
  621.  
  622. % Others
  623.  
  624. $internal_func(':'(_,_)).
  625. $internal_func('/'(_,_)).
  626. $internal_func(perv).
  627. $internal_func(sharing(_,_)).
  628. $internal_func(inherit(_)).
  629. $internal_func(pred(_)).
  630. $internal_func(fun(_)).
  631. $internal_func(functor(_)).
  632. $internal_func(structure(_)).
  633. $internal_func(signature(_)).
  634. $internal_func(struct(_)).
  635. $internal_func(sig(_)).
  636. $internal_func(and(_,_)).
  637.  
  638. /* ------------------------------ $currsyms.P ------------------------------ */
  639.  
  640.